package com.ksr.logistics.service;

import com.ksr.logistics.pojo.Permission;
import com.ksr.logistics.pojo.Result;

import java.util.List;

public interface PermissionService {

    List<Permission> selPermissions();

    List<Permission> selPagePermissions(Integer page, Integer pageSize, String keyWord);

    Result deleteById(Integer id);

    Result deleteByIds(List<Integer> ids);

    Permission selById(Integer id);

    int insertPermission(Permission permission);

    int updatePermission(Permission permission);

    List<Permission> selByPermissionName(String name);

    List<Permission> selChilds(Integer id);

    List<Permission> selIn(String ids);

    List<String> selByPermissionIds(List<Long> ids);

    List<Permission> selMenus(Long parentId, String permissionIds);

    List<Permission> selMenus(Long parentId, Long roleId);
}
